package com.item.service;

import com.item.dao.NoteLockMapper;
import com.item.dao.model.NoteLock;
import com.item.dao.model.NoteLockExample;
import com.item.dao.model.NoteLockKey;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NoteLockService {
    @Autowired
    private NoteLockMapper noteLockMapper;

    private static final Logger logger = Logger.getLogger(NoteLockService.class);

    public int countByExample(NoteLockExample example) {
        return this.noteLockMapper.countByExample(example);
    }

    public NoteLock selectByPrimaryKey(NoteLockKey key) {
        return this.noteLockMapper.selectByPrimaryKey(key);
    }

    public List<NoteLock> selectByExample(NoteLockExample example) {
        return this.noteLockMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(NoteLockKey key) {
        return this.noteLockMapper.deleteByPrimaryKey(key);
    }

    public int updateByPrimaryKeySelective(NoteLock record) {
        return this.noteLockMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NoteLock record) {
        return this.noteLockMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(NoteLockExample example) {
        return this.noteLockMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(NoteLock record, NoteLockExample example) {
        return this.noteLockMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(NoteLock record, NoteLockExample example) {
        return this.noteLockMapper.updateByExample(record, example);
    }

    public int insert(NoteLock record) {
        return this.noteLockMapper.insert(record);
    }

    public int insertSelective(NoteLock record) {
        return this.noteLockMapper.insertSelective(record);
    }
}